<?php
//php8.3+

//str_decrement — Decrement an alphanumeric string
//str_decrement(string $string): string
$str='ABC';
echo str_decrement($str);